package com.xxxx.yeb.server;

import com.xxxx.server.mapper.MenuMapper;
import com.xxxx.server.pojo.MenuRole;
import com.xxxx.server.service.IOssService;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.mock.web.MockMultipartFile;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.web.multipart.MultipartFile;

import java.io.*;

@RunWith(SpringRunner.class)
@SpringBootTest
public class test {
    private static final Logger logger = LoggerFactory.getLogger(test.class);
    @Autowired
    private MenuMapper menuMapper;
    @Autowired
    private IOssService ossService;
    @Test
    public  void Mapper(){
        System.out.println(menuMapper.getAllMenusWithRole());
    }
    @Test
    public  void testOss() throws IOException {
      /*  File file=new File("C:\\Users\\18080\\Desktop\\a.txt");
       ossService.uploadfile(file);
*/

    }
}
